<%-- 
    Document   : profile
    Created on : 05 27, 11, 11:07:05 AM
    Author     : Lee
--%>

<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>

<s:div cssStyle="height: 500px">
    <h6 style="padding: 3px; margin: 0;"><label>Loan Application No. </label><label class="info" style="font-weight: bold; font-style: italic; color: #459e00"><s:property value="%{#gp.l.loanappid}"/></label> <label>Borrower: </label><label class="info" style="font-weight: bold; font-style: italic; color: #459e00"><s:property value="%{#gp.l.borrowername}"/></label></h5>
        <sj:tabbedpanel id="mytabs" animate="true" collapsible="true" useSelectedTabCookie="true">
            <sj:tab id="tab1" cssClass="tabs" target="loanborrowerinfo" label="Loan and Borrower Information" accesskey=""/>
            <sj:tab id="tab3" cssClass="tabs" target="ci" label="Credit Investigation"/>
            <sj:tab id="tab4" cssClass="tabs" target="appraisal" label="Appraisal"/>

        <div id="loanborrowerinfo">
            <s:form theme="simple">
                <s:div>
                    <table cellspacing="0" border="0" width="100%">
                        <tr>
                            <td colspan="6" style="font-size: 12px; font-weight: bold;"><s:label cssStyle="font-size: 12px; font-weight: bold;">Document Information</s:label></td>
                        </tr>
                        <tr>
                            <td colspan="6" style="font-size: 14px; font-weight: bold;"><hr /></td>
                        </tr>
                        <!--                        <tr><td><span style="color: red; font-size: 10px">Note: Fields marked with (*) are required.</td></span></tr>-->
                        <tr>
                        <tr>
                            <td><s:label>Document:</s:label></td>
                            <td><s:label cssClass="info" name="documenttype" label="Document Type" value="Loan Application" readonly="true"/></td>
                            <td><s:label>Document No.:<strong>*</strong></s:label></td>
                            <td><s:label cssClass="info" name="documentno" value="%{#gp.l.documents.documentno}" label="Document No." /></td>
                            <td><s:label>Document Date:<strong>*</strong></s:label></td>
                            <td><s:label cssClass="info" name="documentdate" value="%{#gp.l.documents.documentdate}" label="Document Date"  /></td>
                        </tr>
                        <tr>
                            <td><s:label>Document Image:</s:label></td>
                            <td><a href="javascript:myPopup('loanapplications')"><s:label cssClass="info" name="documentdate" value="%{#gp.l.documents.filename}" label="Document Date"  /></a>
                                    <s:textfield cssStyle="display: none" id="applicationimage" value="%{#gp.l.documents.filename}"  />
                            </td>
                            <td><s:label>Borrower Code:</s:label></td>
                            <td><s:label cssClass="info" label="Borrower Code" key="borrower.borrowerid" readonly="true" name="borid"  value="%{#gp.l.borrowerCode}"/></td>
                            <td><s:label>Borrower Name:</s:label></td>
                            <td><s:label cssClass="info" label="Borrower Name" key="borrower.borrowerfirstname" readonly="true" name="borname" value="%{#gp.l.borrowername}"/></td>
                        </tr>
                        <tr style="display: none">
                            <td><s:label>Branch Code</s:label></td>
                            <td><s:textfield id="branch" label="Branch Code:" name="selectedBranch" value="%{#session['branch'].branchcode}" readonly="true"  /></td>
                            <td><s:label>Employee Id</s:label></td>
                            <td><s:textfield name="employees" label="Employee Id" value="%{#session['employee'].idnumber}" readonly="true" key="loanapplications.employees" /><%-- --%></td>
                        </tr>
                        <tr style="display: none;">
                            <td><s:label>Status</s:label></td>
                            <td><s:textfield label="Status" key="loanapplciations.status" name="status" value="Pending"/></td>
                        </tr>
                    </table>
                    <table border="0" width="100%">
                        <tr>
                            <td colspan="6" style="font-size: 12px; font-weight: bold;"><s:label cssStyle="font-size: 12px; font-weight: bold;">Loan Information</s:label></td>
                        </tr>
                        <tr>
                            <td colspan="6" style="font-size: 14px; font-weight: bold;"><hr /></td>
                        </tr>
                        <!--                        <tr><td><span style="color: red; font-size: 10px">Note: Fields marked with (*) are required.</td></span></tr>-->
                        <tr>
                        <tr>
                            <td><s:label>Loan Classification<strong>*</strong></s:label></td>
                            <s:if test="%{#gp.loans == null}">
                                <td><s:label cssClass="info"
                                         id="loanclass"
                                         key="loanclass"
                                         label="Loan Classification"
                                         name="loanclass"
                                         value="New" /></td>
                                </s:if>
                                <s:else>
                                <td><s:label cssClass="info"
                                         id="loanclass"
                                         key="loanclass"
                                         label="Loan Classification"
                                         name="loanclass"
                                         value="Renew" /></td>
                                </s:else>

                            <td><s:label>Loan Type<strong>*</strong></s:label></td>
                            <td><s:label cssClass="info"
                                     id="loantype"
                                     key="loantype"
                                     label="Loan Type"
                                     name="loantype"
                                     value="%{#gp.l.products.productname}" /></td>
                        </tr>
                        <tr>
                            <td>
                                <s:label>Loan Term<strong>*</strong></s:label>
                            </td>
                            <td>
                                <s:label cssClass="info" id="amortizationdays" name="amortizationdays" label="Amortization Days" value="%{#gp.l.amortizationindays}"/><%-- --%>
                            </td>
                            <td>
                                <s:label>Amount Requested<strong>*</strong></s:label>
                            </td>
                            <td>
                                <s:label cssClass="info" id="amountrequested" name="amountrequested" label="Amount Requested" value="%{#gp.l.amountrequested}"/><%-- --%>
                            </td>
                        </tr>
                        <s:if test="%{#gp.loans != null}">
                            <tr>
                                <td><s:label>Previous Account No.<strong>*</strong></s:label></td>
                                <td>
                                    <s:label cssClass="info" name="1" value="%{#gp.loans.loanid}" /><%-- --%>
                                </td>
                                <td><s:label>Previous Loan Date<strong>*</strong></s:label></td>
                                <td>
                                    <s:label cssClass="info" name="2" value="%{#gp.loans.releasedate}" /><%-- --%>
                                </td>
                                <td><s:label>Previous Loan Type<strong>*</strong></s:label></td>
                                <td>
                                    <s:label cssClass="info" name="3" value="%{#gp.loans.loanapplications.products.productname}" /><%-- --%>
                                </td>
                            </tr>
                            <tr>
                                <td><s:label>Previous Loan Balance<strong>*</strong></s:label></td>
                                <td>
                                    <s:label cssClass="info" name="14" value="%{#gp.loans.balance}" /><%-- --%>
                                </td>
                                <td><s:label>Previous Loan Amount<strong>*</strong></s:label></td>
                                <td>
                                    <s:label cssClass="info" name="15" value="%{#gp.loans.loanamount}" /><%-- --%>
                                </td>
                            </tr>
                        </s:if>
                        <tr style="display: none">
                            <td><s:label>Remarks</s:label></td><td>
                                <s:textarea cols="30" rows="10" name="remarks" label="Remarks" key="loanapplications.remarks" /><%-- --%>
                            </td>
                        </tr>
                    </table>
                    <table cellspacing="0" border="0" width="100%">
                        <tr>
                            <td colspan="6" style="font-size: 12px; font-weight: bold;"><s:label cssStyle="font-size: 12px; font-weight: bold;">Borrower Name</s:label></td>
                        </tr>
                        <tr>
                            <td colspan="6" style="font-size: 14px; font-weight: bold;"><hr /></td>
                        </tr>
                        <!--                        <tr><td><span style="color: red; font-size: 10px">Note: Fields marked with (*) are required.</td></span></tr>-->
                        <tr>

                            <td><s:label>First Name<strong>*</strong></s:label></td><td>
                                <s:label cssClass="info" label="First Name" value="%{#gp.b.firstname}" name="firstname" id="firstname" /><%-- --%></td>
                            <td><s:label>Middle Name<strong>*</strong></s:label></td><td>
                                <s:label cssClass="info" label="Middle Name" value="%{#gp.b.middlename}" name="middlename" id="middlename" /><%-- --%></td>
                            <td> <s:label>Last Name<strong>*</strong></s:label></td><td>
                                <s:label cssClass="info" label="Last Name" value="%{#gp.b.lastname}" name="lastname" id="lastname" /><%-- --%></td>
                        </tr>
                    </table>
                    <p style="visibility: hidden; margin: 0; padding:0">Divider</p>
                    <!--                    <hr />-->
                    <table cellspacing="0" border="0" width="100%">
                        <tr>
                            <td><s:label>Area Code</s:label></td>
                            <td><s:label cssClass="info" label="Area Code:" value="%{#gp.b.areacode}" name="selectedArea" /></td>  
                        </tr>

                        <tr>
                            <td colspan="5" style="font-size: 12px; font-weight: bold;"><s:label cssStyle="font-size: 12px; font-weight: bold;">Current Home Address</s:label></td>
                        </tr>
                        <tr>
                            <td colspan="5" style="font-size: 14px; font-weight: bold;"><hr /></td>
                        </tr>
                        <tr>
                            <td><s:label>Street Address<strong>*</strong></s:label></td>
                            <td><s:label>Barangay<strong>*</strong></s:label></td>
                            <td><s:label>Municipality/City<strong>*</strong></s:label></td>
                            <td><s:label>Postal Code<strong>*</strong></s:label></td>
                            <td><s:label>Province<strong>*</strong></s:label></td>
                        </tr>
                        <tr>
                        </tr>
                        <td>
                            <s:label cssClass="info" label="Street Address" value="%{#gp.b.streetaddress}" name="streetaddress" id="streetaddress" cssStyle="width: 160px" />
                        </td>
                        <td>
                            <s:label cssClass="info" label="Barangay" value="%{#gp.b.barangay}" name="barangay" id="barangay"/>
                        </td>
                        <td>
                            <s:label cssClass="info" label="City or Municipality" value="%{#gp.b.cityormunicipality}" id="cityormunicipality" name="cityormunicipality"/>
                        </td>
                        <td>
                            <s:label cssClass="info" label="Postal Code" value="%{#gp.b.postalcode}" id="postalcode" name="postalcode" />
                        </td>
                        <td>
                            <s:label cssClass="info" label="Province" value="%{#gp.b.province}" id="province" name="province"/>
                        </td>
                        </tr>
                        <tr>
                            <td colspan="3"><s:label>Present Address Stability<strong>*</strong></s:label>
                                <s:label cssClass="info"
                                         id="presentaddressstatus"
                                         key="loanapplications.presentaddressstatus"
                                         label="Stability"
                                         name="presentaddressstatus"
                                         value="%{#gp.l.presentaddressstatus}" />
                            </td>
                            <td><s:label>Years of Stay<strong>*</strong></s:label>
                                <s:label cssClass="info"
                                         id="payears"
                                         cssStyle="width: 40px;"
                                         key="loanapplications.presentaddresslengthofstayinyears"
                                         label="years"
                                         name="presentaddresslengthofstayinyears"
                                         value="%{#gp.l.presentaddresslengthofstayinyears}" />
                            </td>
                            <td><s:label>Months of Stay<strong>*</strong></s:label>
                                <s:label cssClass="info"
                                         id="pamonths"
                                         cssStyle="width: 40px;"
                                         key="loanapplications.presentaddresslengthofstayinmonths"
                                         label="months"
                                         name="presentaddresslengthofstayinmonths"
                                         value="%{#gp.l.presentaddresslengthofstayinmonths}" />
                            </td>
                        </tr>
                    </table>

                    <p style="visibility: hidden; margin: 0; padding:0">Divider</p>
                    <!--                    <hr />-->
                    <table width="100%">
                        <tr>
                            <td colspan="5" style="font-size: 12px; font-weight: bold;"><s:label cssStyle="font-size: 12px; font-weight: bold;">Provincial Home Address</s:label></td>
                        </tr>
                        <tr>
                            <td colspan="5" style="font-size: 14px; font-weight: bold;"><hr /></td>
                        </tr>
                        <tr>
                            <td><s:label>Street Address<strong>*</strong></s:label></td>
                            <td><s:label>Barangay<strong>*</strong></s:label><%-- --%></td>
                            <td><s:label>Municipality/City<strong>*</strong></s:label><%-- --%></td>
                            <td><s:label>Postal Code<strong>*</strong></s:label><%-- --%></td>
                            <td><s:label>Province<strong>*</strong></s:label><%-- --%></td>
                        </tr>
                        <tr>
                            <td>
                                <s:label cssClass="info" id="provstreetno" value="%{#gp.l.provincialstreetaddress}" name="provincialstreetaddress" label="Street No." key="loanapplications.provincialstreetaddress" cssStyle="width: 160px"  />
                            </td>
                            <td>
                                <s:label cssClass="info" id="provbrgy" value="%{#gp.l.provincialbarangay}" name="provincialbarangay" label="Barangay" key="loanapplications.provincialbarangay" />
                            </td>
                            <td>
                                <s:label cssClass="info" id="provcity" value="%{#gp.l.provincialcityormunicipality}" name="provincialcityormunicipality" label="Municipality/City" key="loanapplications.provincialcityormunicipality" />
                            </td>
                            <td>
                                <s:label cssClass="info" id="provpostalcode" value="%{#gp.l.provincialpostalcode}" name="provincialpostalcode" label="Postal Code" key="loanapplications.provincialpostalcode" />
                            </td>
                            <td>
                                <s:label cssClass="info" id="provprovince" value="%{#gp.l.provincialprovince}" name="provincialprovince" label="Province" key="loanapplications.provincialprovince" />
                            </td>

                        </tr>
                        <tr>
                            <td colspan="3"><s:label>Provincial Address Stability<strong>*</strong></s:label><%-- --%>
                                <s:label cssClass="info"
                                         id="provstatus"
                                         key="loanapplications.provincialaddressstatus"
                                         label="Stability"
                                         name="provincialaddressstatus"
                                         value="%{#gp.l.provincialaddressstatus}" /><%-- --%>
                                <s:label label="Length of Stay"/>
                            </td>
                            <td><s:label>Years of Stay<strong>*</strong></s:label><%-- --%>
                                <s:label cssClass="info"
                                         id="provyears"
                                         cssStyle="width: 40px;"
                                         key="loanapplications.provincialaddresslengthofstayinyears"
                                         label="years"
                                         name="provincialaddresslengthofstayinyears"
                                         value="%{#gp.l.provincialaddresslengthofstayinyears}" />
                            </td>
                            <td><s:label>Months of Stay<strong>*</strong></s:label><%-- --%>
                                <s:label cssClass="info"
                                         id="provmonths"
                                         cssStyle="width: 40px;"
                                         key="loanapplications.provincialaddresslengthofstayinmonths"
                                         label="months"
                                         name="provincialaddresslengthofstayinmonths"
                                         value="%{#gp.l.provincialaddresslengthofstayinmonths}" />
                            </td>
                        </tr>
                    </table>
                    <p style="visibility: hidden; margin: 0; padding:0">Divider</p>
                    <!--                    <hr />-->
                    <table cellspacing="0" border="0"  width="100%">
                        <tr>
                            <td colspan="6" style="font-size: 12px; font-weight: bold;"><s:label cssStyle="font-size: 12px; font-weight: bold;">Personal Information</s:label></td>
                        </tr>
                        <tr>
                            <td colspan="6" style="font-size: 14px; font-weight: bold;"><hr /></td>
                        </tr>
                        <tr>
                            <td><s:label>Date of Birth<strong>*</strong></s:label></td><td>
                                <s:label cssClass="info" label="Date of Birth" value="%{#gp.b.dateofbirth}" name="dateofbirth" id="dateofbirth" displayFormat="mm/dd/yy"  /><%-- --%></td>
                            <td><s:label>Age<strong>*</strong></s:label></td><td>
                                <s:label cssClass="info" label="Age" key="bor.age" name="age" id="age" value="%{#gp.b.age}" /><%-- --%></td>
                            <td><s:label>Place of Birth<strong>*</strong></s:label></td><td>
                                <s:label cssClass="info" label="Place of Birth" value="%{#gp.b.placeofbirth}" name="placeofbirth" id="placeofbirth" /><%-- --%></td>
                        </tr>
                        <tr>
                            <td><s:label>Religion<strong>*</strong></s:label></td><td>
                                <s:label cssClass="info" id="religion" label="Religion" value="%{#gp.b.religion}" name="religion" /><%-- --%></td>
                            <td><s:label>Citizenship<strong>*</strong></s:label></td><td>
                                <s:label cssClass="info" id="citizenship" label="Citizenship" value="%{#gp.b.citizenship}" name="citizenship" /><%-- --%></td>
                            <td><s:label>Civil Status<strong>*</strong></s:label></td><td>
                                <s:label cssClass="info"
                                         id="civilstatus"
                                         label="Civil Status"
                                         name="selectedStatus"
                                         value="%{#gp.b.civilstatus}" /><%-- --%></td>
                        </tr>
                        <tr>
                            <td><s:label>Contact No.</s:label></td><td>
                                <s:label cssClass="info" label="Contact No." name="contactno" value="%{#gp.b.contactnumber}" /><%-- --%></td>
                        </tr>
                    </table>
                    <table  cellspacing="0" border="0"  width="100%"> 
                        <tr>
                            <td colspan="6" style="font-size: 12px; font-weight: bold;"><s:label cssStyle="font-size: 12px; font-weight: bold;">Spouse Information</s:label></td>
                        </tr>
                        <tr>
                            <td colspan="6" style="font-size: 14px; font-weight: bold;"><hr /></td>
                        </tr>
                        <tr>
                            <td><s:label>First Name</s:label></td><td>
                                <s:label cssClass="info" id="spouserfirstname" name="spousefirstname" value="%{#gp.l.spousefirstname}" label="First Name" key="loanapplications.spousefirstname" /></td>
                            <td><s:label>Middle Name</s:label></td><td>
                                <s:label cssClass="info" id="spousemiddlename" name="spousemiddlename" value="%{#gp.l.spousemiddlename}" label="Middle Name" key="loanapplications.spousemiddlename"/></td>
                            <td> <s:label>Last Name</s:label></td><td>
                                <s:label cssClass="info" id="spouselastname" name="spouselastname" value="%{#gp.l.spouselastname}" label="Last Name" key="loanapplications.spouselastname"/></td>
                        </tr>
                    </table>
                    <p style="visibility: hidden; margin: 0; padding:0">Divider</p>
                    <table width="100%">
                        <tr>
                            <td colspan="5" style="font-size: 12px; font-weight: bold;"><s:label cssStyle="font-size: 12px; font-weight: bold;">Spouse Provincial Home Address</s:label></td>
                        </tr>
                        <tr>
                            <td colspan="6" style="font-size: 14px; font-weight: bold;"><hr /></td>
                        </tr>
                        <tr>
                            <td><s:label>Street Address</s:label></td>
                            <td><s:label>Barangay</s:label><%-- --%></td>
                            <td><s:label>Municipality/City</s:label><%-- --%></td>
                            <td><s:label>Postal Code</s:label><%-- --%></td>
                            <td><s:label>Province</s:label><%-- --%></td>
                        </tr>
                        <tr>
                            <td>
                                <s:label cssClass="info" id="sprovstreetno" value="%{#gp.l.spouseprovincialstreetaddress}" name="spouseprovincialstreetaddress" label="Street Address" key="loanapplications.spouseprovincialstreetaddress" cssStyle="width: 160px"/>
                            </td>
                            <td>
                                <s:label cssClass="info" id="sprovbrgy" value="%{#gp.l.spouseprovincialbarangay}" name="spouseprovincialbarangay" label="Barangay" key="loanapplications.spouseprovincialbarangay"/>
                            </td>
                            <td>
                                <s:label cssClass="info" id="sprovcity" value="%{#gp.l.spouseprovincialcityormunicipality}" name="spouseprovincialcityormunicipality" label="Municipality/City" key="loanapplications.spouseprovincialcityormunicipality"/>
                            </td>
                            <td>
                                <s:label cssClass="info" id="sprovpostalcode" value="%{#gp.l.spouseprovincialpostalcode}" name="spouseprovincialpostalcode" label="Postal Code" key="loanapplications.spouseprovincialpostalcode"/>
                            </td>
                            <td>
                                <s:label cssClass="info" id="sprovprovince" value="%{#gp.l.spouseprovincialprovince}" name="spouseprovincialprovince" label="Province" key="loanapplications.spouseprovincialprovince"/>
                            </td>

                        </tr>
                    </table>
                    <p style="visibility: hidden; margin: 0; padding:0">Divider</p>
                    <table width="100%">
                        <tr>
                            <td colspan="5" style="font-size: 12px; font-weight: bold;"><s:label cssStyle="font-size: 12px; font-weight: bold;">Spouse Personal Information</s:label></td>
                        </tr>
                        <tr>
                            <td colspan="6" style="font-size: 14px; font-weight: bold;"><hr /></td>
                        </tr>
                        <tr>
                            <td><s:label>Date of Birth</s:label></td><td>
                                <s:label cssClass="info" id="spouseBirthDate" name="spousedateofbirth" value="%{#gp.l.spousedateofbirth}" label="Date of Birth" key="loanapplications.spousedateofbirth" /></td>
                            <td><s:label>Place of Birth</s:label></td><td>
                                <s:label cssClass="info" id="spousebirthplace" name="spouseplaceofbirth" value="%{#gp.l.spouseplaceofbirth}" label="Place of Birth" key="loanapplications.spouseplaceofbirth"/></td>
                            <td><s:label>Religion</s:label></td><td>
                                <s:label cssClass="info" id="spousereligion" name="spousereligion" value="%{#gp.l.spousereligion}" label="Religion" key="loanapplications.spousereligion"/></td>
                        </tr>
                        <tr>
                            <td><s:label>Citizenship</s:label></td><td>
                                <s:label cssClass="info" id="spousecitizenship" name="spousecitizenship" label="Citizenship" value="%{#gp.l.spousecitizenship}" key="loanapplications.spousecitizenship"/></td>
                        </tr>
                    </table>

                    <p style="visibility: hidden; margin: 0; padding:0">Divider</p>
                    <table id="tbldependent" border="0" width="100%">
                        <tr>
                            <td colspan="5" style="font-size: 12px; font-weight: bold;"><s:label cssStyle="font-size: 12px; font-weight: bold;">Children/Dependents</s:label></td>
                        </tr>
                        <tr>
                            <td colspan="6" style="font-size: 14px; font-weight: bold;"><hr /></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>Name</td>
                            <td>Relationship</td>
                            <td>Age</td>
                        </tr>
                        <%--<%
                            System.out.println("ETO" + request.getSession().getAttribute("deplist"));
                            System.out.println("ETO" + request.getSession().getAttribute("reqlist"));
                            System.out.println("ETO" + request.getSession().getAttribute("reflist"));
                            System.out.println("ETO" + request.getSession().getAttribute("loanlist"));

                            System.out.println("ETO" + request.getSession().getAttribute("parplist"));
                            System.out.println("ETO" + request.getSession().getAttribute("soilist"));
                            System.out.println("ETO" + request.getSession().getAttribute("replist"));
                            System.out.println("ETO" + request.getSession().getAttribute("nrlist"));
                            System.out.println("ETO" + request.getSession().getAttribute("inflist"));
                            System.out.println("ETO" + request.getSession().getAttribute("doclist"));
                            System.out.println("ETO" + request.getSession().getAttribute("toclist"));
                        %>--%>
                        <s:iterator value="#session.deplist">
                            <tr id="tobecloned">
                                <td id="labelto">1</td>
                                <td>
                                    <s:label cssClass="info" id="depname" name="name" label="Name" key="dependents.name" cssStyle="width: 200px"/>
                                </td>
                                <td>
                                    <s:label cssClass="info" id="deprel" name="relationship" label="Relationship" key="dependents.relationship"/>
                                </td>
                                <td>
                                    <s:label cssClass="info" id="depage" name="age" label="Age" cssStyle="width: 80px"/>
                                </td>
                            </tr>
                        </s:iterator>
                    </table>
                    <%--
                <table border="0" id="tblbus" width="100%">
                    <tr>
                        <td colspan="5" style="font-size: 12px; font-weight: bold;"><s:label cssStyle="font-size: 12px; font-weight: bold;">Business Information</s:label></td>
                        </tr>
                        <tr>
                            <td colspan="5" style="font-size: 14px; font-weight: bold;"><hr /></td>
                        </tr>
                        <tr><td><span style="color: red; font-size: 10px">Note: At least one (1) business is required.</td></span></tr>
                        <tr>
                            <td></td>
                            <td>Business Type</td>
                            <td>Business Name</td>
                        </tr>

                            <tr id="tobeclonedbus">
                                <td>1</td>
                                <td>
                                <s:textfield name="businesstype" label="Business Type" key="businesses.businesstype" /></td>
                            <td>
                                <s:textfield name="businessname" label="Business Name" key="businesses.businessname" /></td>
                        </tr>
                    </table>
                    <table id="tbladdress" width="100%">
                        <tr>
                            <td colspan="5" style="font-size: 12px; font-weight: bold;"><s:label cssStyle="font-size: 12px; font-weight: bold;">Business Address</s:label></td>
                            </tr>
                            <tr>
                                <td colspan="5" style="font-size: 14px; font-weight: bold;"><hr /></td>
                            </tr>
                            <tr>
                                <td></td>
                                <td><s:label>Street Address<strong>*</strong></s:label></td>
                            <td><s:label>Barangay<strong>*</strong></s:label></td>
                            <td><s:label>Municipality/City<strong>*</strong></s:label></td>
                            <td><s:label>Postal Code<strong>*</strong></s:label></td>
                            <td><s:label>Province<strong>*</strong></s:label></td>
                            </tr>
                            <tr id="tobeclonedaddress">
                                <td>1</td>
                                <td>
                                <s:textfield name="businessstreetaddress" label="Street No." key="businesses.streetaddress"  cssStyle="width: 160px"/>
                            </td>
                            <td>
                                <s:textfield name="businessbarangay" label="Barangay" key="businesses.barangay" cssStyle="float: left"/>
                            </td>
                            <td>
                                <s:textfield name="businesscityormunicipality" label="Municipality/City" key="businesses.cityormunicipality" />
                            </td>
                            <td>
                                <s:textfield name="businesspostalcode" label="Postal Code" key="businesses.postalcode" />
                            </td>
                            <td>
                                <s:textfield name="businessprovince" label="Province" key="businesses.province" />
                            </td>

                        </tr>
                    </table>
                    <table id="tblstability">
                        <tr>
                            <td></td>
                            <td><s:label>Business Stability</s:label></td>
                            <td><s:label>Years in business</s:label></td>
                            <td><s:label>Months in Business</s:label></td>
                            </tr>
                            <tr id="tobeclonedstability">
                                <td>1</td>
                                <td>
                                <s:textfield
                                    label="Stability"
                                    name="businessstability"
                                    /></td>
                            <td>
                                <s:textfield
                                    cssStyle="width: 40px;"
                                    label="years"
                                    /></td>
                            <td>
                                <s:textfield
                                    cssStyle="width: 40px;"
                                    label="months" /></td>
                        </tr>
                    </table>
                    --%>   
                    <table border="0">
                        <tr>
                            <td colspan="5" style="font-size: 12px; font-weight: bold;"><s:label cssStyle="font-size: 12px; font-weight: bold;">Statement of Monthly Income</s:label></td>
                        </tr>
                        <tr>
                            <td colspan="5" style="font-size: 14px; font-weight: bold;"><hr /></td>
                        </tr>
                        <tr>
                            <td>
                                <s:label>Business<strong>*</strong></s:label></td><td>
                                <s:label cssClass="info" id="businesss" name="business" value="%{#gp.mi.business}" label="Business" key="monthlyincome.business"/><%-- --%>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <s:label>Employment<strong>*</strong></s:label></td><td>
                                <s:label cssClass="info" id="employement" name="employement" value="%{#gp.mi.employement}" label="employment" key="monthlyincome.employement"/><%-- --%>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <s:label>Spouse Income<strong>*</strong></s:label></td><td>
                                <s:label cssClass="info" id="spouseincome" name="spouseincome" value="%{#gp.mi.spouseincome}" label="Spouse Income" key="monthlyincome.spouseincome"/><%-- --%>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <s:label>Other Sources<strong>*</strong></s:label></td><td>
                                <s:label cssClass="info" id="othersources" name="othersources" value="%{#gp.mi.othersources}" label="Other Sources" key="monthlyincome.othersources"/><%-- --%>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <s:label>Gross Income<strong>*</strong></s:label></td><td>
                                <s:label cssClass="info" id="grossincome" name="grossincome" value="%{#gp.mi.grossincome}" label="Gross Income" key="monthlyincome.grossincome"/><%-- --%>
                            </td>
                        </tr>
                        <tr><td colspan="2" style="font-size: 12px; font-weight: bold;"><s:label>Less Expenses</td></s:label></tr>
                        <tr>
                            <td>
                                <s:label>Rent<strong>*</strong></s:label></td><td>
                                <s:label cssClass="info" id="rentexpense" name="rentexpense" label="Rent" value="%{#gp.mi.rentexpense}" key="monthlyincome.rentexpense"/><%-- --%>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <s:label>Food and Clothing<strong>*</strong></s:label></td><td>
                                <s:label cssClass="info" id="foodandclothing" name="foodandclothing" value="%{#gp.mi.foodandclothing}" label="Food and Clothing" key="monthlyincome.foodandclothing"/><%-- --%>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <s:label>Education<strong>*</strong></s:label></td><td>
                                <s:label cssClass="info" id="education" name="education" label="Education" value="%{#gp.mi.education}" key="monthlyincome.education"/><%-- --%>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <s:label>Outstanding Loan<strong>*</strong></s:label></td><td>
                                <s:label cssClass="info" id="outstandingloan" name="outstandingloan" value="%{#gp.mi.outstandingloan}" label="Outstanding Loan" key="monthlyincome.outstandingloan"/><%-- --%>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <s:label>Total Expenses<strong>*</strong></s:label></td><td>
                                <s:label cssClass="info" id="totalexpenses" name="totalexpenses" value="%{#gp.mi.totalexpenses}" label="Total Expenses" key="monthlyincome.totalexpenses"/><%-- --%>
                            </td>
                        </tr>
                        <tr>
                            <td><s:label>Net Income Before Tax<strong>*</strong></s:label></td><td>
                                <s:label cssClass="info" id="netincomebeforetax" name="netincomebeforetax" value="%{#gp.mi.netincomebeforetax}" label="Net Income Before Tax" key="monthlyincome.netincomebeforetax"/><%-- --%>
                            </td>
                        </tr>
                    </table>
                    <table border="0" id="tblloan" width="100%">
                        <tr>
                            <td colspan="5" style="font-size: 12px; font-weight: bold;"><s:label cssStyle="font-size: 12px; font-weight: bold;">Loans with Banks and Other Institutions</s:label></td>
                        </tr>
                        <tr>
                            <td colspan="5" style="font-size: 14px; font-weight: bold;"><hr /></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td><s:label>Name</s:label></td>
                            <td><s:label>Principal Amount</s:label></td>
                            <td><s:label>Balance</s:label></td>
                        </tr>
                        <s:iterator value="#session.loanlist">
                            <tr id="tobeclonedloan">
                                <td>1</td>
                                <td>
                                    <s:label cssClass="info" id="bankname2" name="bankname" label="Name" key="loanswithoterbanks.bankname" cssStyle="300px"/>
                                </td>
                                <td>
                                    <s:label cssClass="info" id="principalamt2" name="principalamt" label="Principal Amount" key="loanswithoterbanks.principalamt"/>
                                </td>
                                <td>
                                    <s:label cssClass="info" id="balance2" name="balance" label="Balance" key="loanswithoterbanks.balance"/>
                                </td>
                            </tr>
                        </s:iterator>
                    </table>
                    <table border="0" width="100%">
                        <tr>
                            <td colspan="5" style="font-size: 12px; font-weight: bold;"><s:label cssStyle="font-size: 12px; font-weight: bold;">Co-borrower Information</s:label></td>
                        </tr>
                        <tr>
                            <td colspan="5" style="font-size: 14px; font-weight: bold;"><hr /></td>
                        </tr>
                        <tr>
                            <td>
                                <s:label>First Name</s:label>
                                <s:label cssClass="info" name="coborrowerfirstname" value="%{#gp.l.coborrowerfirstname}" label="First Name" key="loanapplications.coborrowerfirstname" />
                            </td>
                            <td>
                                <s:label>Middle Name</s:label>
                                <s:label cssClass="info" name="coborrowermiddlename" value="%{#gp.l.coborrowermiddlename}" label="Middle Name" key="loanapplications.coborrowermiddlename" />

                            </td>
                            <td>
                                <s:label>Last Name</s:label>
                                <s:label cssClass="info" name="coborrowerlastname" value="%{#gp.l.coborrowerlastname}" label="Last Name" key="loanapplications.coborrowerlastname" />
                            </td>
                            <td>
                                <s:label>Religion</s:label>
                                <s:label cssClass="info" name="coborrowerreligion" value="%{#gp.l.coborrowerreligion}" label="Religion" key="loanapplications.spousereligion"/>
                            </td>
                        </tr>
                    </table>
                    <p style="visibility: hidden; margin: 0; padding:0">Divider</p>
                    <table border="0" width="100%">
                        <tr>
                            <td colspan="5" style="font-size: 12px; font-weight: bold;"><s:label cssStyle="font-size: 12px; font-weight: bold;">Co-borrower Address</s:label></td>
                        </tr>
                        <tr>
                            <td colspan="5" style="font-size: 14px; font-weight: bold;"><hr /></td>
                        </tr>
                        <tr>
                            <td>
                                <s:label>Street No.</s:label>
                                <s:label cssClass="info" name="coborrowerstreetaddress" value="%{#gp.l.coborrowerstreetaddress}" label="Street No." key="loanapplications.coborrowerstreetaddress" />
                            </td>
                            <td>
                                <s:label>Barangay</s:label><%-- --%>
                                <s:label cssClass="info" name="coborrowerbarangay" value="%{#gp.l.coborrowerbarangay}" label="Barangay" key="loanapplications.coborrowerbarangay"/>
                            </td>
                            <td>
                                <s:label>Municipality/City</s:label><%-- --%>
                                <s:label cssClass="info" name="coborrowercityormunicipality" value="%{#gp.l.coborrowercityormunicipality}" label="Municipality/City" key="loanapplications.coborrowercityormunicipality"/>
                            </td>
                            <td>
                                <s:label>Province</s:label><%-- --%>
                                <s:label cssClass="info" name="coborrowerprovince" value="%{#gp.l.coborrowerprovince}" label="Province" key="loanapplications.coborrowerprovince"/>
                            </td>
                            <td>
                                <s:label>Postal Code</s:label><%-- --%>
                                <s:label cssClass="info" name="coborrowerpostalcode" value="%{#gp.l.coborrowerpostalcode}" label="Postal Code" key="loanapplications.coborrowerpostalcode"/>
                            </td>
                        </tr>
                    </table>
                    <p style="visibility: hidden; margin: 0; padding:0">Divider</p>
                    <table border="0" id="tblreferences" width="100%">
                        <tr>
                            <td colspan="5" style="font-size: 12px; font-weight: bold;"><s:label cssStyle="font-size: 12px; font-weight: bold;">Character and Credit References</s:label></td>
                        </tr>
                        <tr>
                            <td colspan="5" style="font-size: 14px; font-weight: bold;"><hr /></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td><s:label>Name<strong>*</strong></s:label></td>
                            <td><s:label>Address<strong>*</strong></s:label></td>
                            <td><s:label>Position/Occupation<strong>*</strong></s:label></td>
                        </tr>
                        <s:iterator value="#session.reflist">
                            <tr id="tobeclonedreferences">
                                <td>1</td>
                                <td width="25%">
                                    <s:label cssClass="info" id="refname" name="name" label="Name" key="characterreferences.name" cssStyle="width: 100%" />
                                </td>
                                <td <td width="50%">
                                    <s:label cssClass="info" id="refadd" name="address" label="Address" key="characterreferences.address" cssStyle="width: 100%" />
                                </td>
                                <td <td width="25%">
                                    <s:label cssClass="info" id="refpos" name="occupation" label="Position/Occupation" key="characterreferences.occupation" cssStyle="width: 100%" />
                                </td>
                            </tr>
                        </s:iterator>
                    </table>
                    <table width="100%">
                        <tr>
                            <td colspan="5" style="font-size: 12px; font-weight: bold;"><s:label cssStyle="font-size: 12px; font-weight: bold;">Requirements Passed</s:label></td>
                        </tr>
                        <tr>
                            <s:iterator value="#session.reqlist">
                                <td>
                                    <input type="checkbox" value="<s:property value="requirementname"/>" checked="checked" disabled="true" /><label><s:property value="requirementname"/></label><br/>
                                    <%--<s:checkbox label="Business Permit" name="requirement" value="false" fieldValue="Business Permit" key="reputation.type" /><s:label>Business Permit</s:label><br />
                                    <s:checkbox label="Picture of Business Establishment" name="requirement" value="false" fieldValue="Picture of Business Establishment" key="reputation.type"/><s:label>Picture of Business Establishment</s:label><br />--%>
                                </td> 
                            </s:iterator>
                        </tr>
                    </table>
                </s:div>
            </s:form>
        </div>
        <div id="ci">
            <s:form id="creditform" action="add-credit" theme="simple"  method="post" enctype="multipart/form-data">
                <s:div>
                    <table border="0" width="100%">
                        <tr>
                            <td colspan="6" style="font-size: 14px; font-weight: bold;"><s:label>Document Information</s:label></td>
                        </tr>
                        <tr>
                            <td colspan="6" style="font-size: 14px; font-weight: bold;"><hr /></td>
                        </tr>
                        <tr>
                            <td><s:label>Document No.</s:label></td><td><s:label cssClass="info" id="docnoci" name="docnoci" value="%{#gp.ci.documentno}" label="Document No." /></td>
                            <td><s:label>Document Ref No.</s:label></td><td><s:label cssClass="info" id="docrefnoci" name="docrefnoci" value="%{#gp.l.documents.documentno}" label="Document Ref No." /></td>
                            <td><s:label>Employee Id</s:label></td><td><s:label cssClass="info" name="employeeid" value="%{#gp.ci.employees.completename}" readonly="true" label="Employee Id"/></td>
                        </tr>
                        <tr>
                            <td><s:label>Document Type</s:label></td><td><s:label cssClass="info" id="doctypeci" name="doctypeci" label="Document Type" value="Credit Investigation" /></td>
                            <td><s:label>Document Ref Type</s:label></td><td><s:label cssClass="info" id="docreftypeci" name="docreftypeci" label="Document Ref Type" value="Loan Application" /></td>
                            <td><s:label>Loan Application No.</s:label></td><td><s:label cssClass="info" name="loanappid" label="Loan Application No." value="%{#gp.l.loanappid}"/></td>
                        </tr>
                        <tr>
                            <td><s:label>Document Date</s:label></td><td><s:label cssClass="info" name="docdate" label="Document Date" value="%{#gp.ci.documents.documentdate}"/></td>
                            <td><s:label>Document Image</s:label></td><td><a href="javascript:myPopup('creditinvestigations')"><s:label cssStyle="width: 10px" cssClass="info" name="userImage" label="User Image" value="%{#gp.ci.documents.filename}" /></a>
                                <s:textfield cssStyle="display: none" id="ciimage" value="%{#gp.ci.documents.filename}"  /></td>
                        </tr>
                        <tr>
                            <td colspan="6" style="font-size: 14px; font-weight: bold;"><hr /></td>
                        </tr>
                    </table>
                </s:div>
                <s:div cssStyle="height: 325px; overflow: auto">

                    <table width="100%">
                        <tr>
                            <td><s:label>Nickname: </s:label></td>
                            <td><s:label cssClass="info" id="nickname" name="nickname" label="Nickname"  value="%{#gp.ci.nickname}" key="creditinvestigations.nickname" /></td>
                        </tr>
                    </table>
                    <table border="0" width="100%">
                        <tr>
                            <td colspan="6" style="font-size: 14px; font-weight: bold;"><s:label>Current Address Description</s:label></td>
                        </tr>
                        <tr>
                            <td colspan="6" style="font-size: 14px; font-weight: bold;"><hr /></td>
                        </tr>
                        <tr>
                            <td><s:label>Floor Area (sq.meters)</s:label></td>
                            <td>
                                <s:label cssClass="info" id="cadfloorarea" name="addressfloorarea" label="Floor Area (sq.meters)"  value="%{#gp.ci.addressfloorarea}" key="creditinvestigations.addressfloorarea" /><%-- --%>
                            </td>
                            <td><s:label>Land Area (sq.meters)</s:label></td>
                            <td>
                                <s:label cssClass="info" id="cadlandarea" name="addresslotarea" label="Land Area (sq.meters)"  value="%{#gp.ci.addresslotarea}" key="creditinvestigations.addresslotarea" /><%-- --%>
                            </td>
                            <td><s:label>Business Stability</s:label></td>
                            <td>
                                <s:label
                                    cssClass="info"
                                    key="creditinvestigations.addressstability"
                                    label="Stability"
                                    id="castability"
                                    name="addressstability"
                                    value="%{#gp.ci.addressstability}" /><%-- --%>
                            </td>
                        </tr>
                        <tr>
                            <td><s:label>Model</s:label></td>
                            <td>
                                <s:label
                                    cssClass="info"
                                    key="creditinvestigations.addressmodel"
                                    label="Model"
                                    id="castability"
                                    name="addressmodel"
                                    value="%{#gp.ci.addressmodel}" /><%-- --%>
                            </td>
                            <td><s:label>Make</s:label></td>
                            <td>
                                <s:label
                                    cssClass="info"
                                    key="creditinvestigations.addressmake"
                                    label="Make"
                                    id="camake"
                                    name="addressmake"
                                    value="%{#gp.ci.addressmake}" /><%-- --%>
                            </td>
                            <td><s:label>Land</s:label></td>
                            <td>
                                <s:label
                                    cssClass="info"
                                    key="creditinvestigations.addressland"
                                    label="Land"
                                    id="caland"
                                    name="addressland"
                                    value="%{#gp.ci.addressland}" /><%-- --%>
                            </td>
                        </tr>
                    </table>
                    <table border="0" width="100%">
                        <tr>
                            <td><s:label>If renting:</s:label></td>
                        </tr>
                        <tr>
                            <td><s:label>Name of Landlord</s:label></td>
                            <td><s:label cssClass="info" name="addresslandlordname" label="Name of Landlord" value="%{#gp.ci.addresslandlordname}" /></td>
                            <td><s:label>Monthly Rental</s:label></td>
                            <td><s:label cssClass="info" name="addressmonthlyrental" label="Monthly Rental" value="%{#gp.ci.addressmonthlyrental}" /></td>
                            <td><s:label>Landlord Address</s:label></td>
                            <td><s:label cssClass="info" name="addresslandlordaddress" label="Landlord Address" value="%{#gp.ci.addresslandlordaddress}" /></td>
                            <td><s:label>Phone No.</s:label></td>
                            <td><s:label cssClass="info" name="addresslandlordphoneno" label="Phone No." value="%{#gp.ci.addresslandlordphoneno}" /></td>
                        </tr>
                    </table>

                   <s:if test="%{#session.business!=null}">
                       <table border="0">
                           <tr>
                               <td colspan="6" style="font-size: 14px; font-weight: bold;"><s:label>Businesses</s:label></td>
                               </tr>
                               <tr>
                                   <td colspan="6" style="font-size: 14px; font-weight: bold;"><hr /></td>
                               </tr>
                               <tr id="trid">
                                   <td style="display: none"></td>
                               <s:iterator value="#session.business" >
                                   <td id="tobeclonedid" style="display: none"><s:textfield name="businessid" /></td>
                               </s:iterator>
                           </tr>
                           <tr id="trname">
                               <td>Business Name</td>
                               <s:iterator value="#session.business" >
                                   <td id="tobeclonedname"><s:label cssClass="info" name="businessname" title="Business Name" label="Business Name" /></td>
                               </s:iterator>
                           </tr>
                           <tr id="trtype">
                               <td>Business Type</td>
                               <s:iterator value="#session.business" >
                                   <td id="tobeclonedtype"><s:label cssClass="info" name="businesstype" title="Business Type" label="Business Type" /></td>
                               </s:iterator>
                           </tr>
                           <tr id="trfloorarea">
                               <td>Floor Area</td>
                               <s:iterator value="#session.business" >
                                   <td id="tobeclonedfloorarea"><s:label cssClass="info" id="pbdfloorarea" name="floorarea" label="Floor Area (sq.meters)" cssStyle="width: 70px" key="businesses.floorarea" /> sq. meter</td>
                               </s:iterator>
                           </tr>
                           <tr id="trlandarea">
                               <td>Land Area</td>
                               <s:iterator value="#session.business" >
                                   <td id="tobeclonedlandarea"><s:label cssClass="info" id="pbdlandarea" name="lotarea" label="Land Area (sq.meters)" cssStyle="width: 70px" key="businesses.lotarea"/> sq. meter</td>
                               </s:iterator>
                           </tr>
                           <tr id="trbusstability">
                               <td>Business Stability</td>
                               <s:iterator value="#session.business" >
                                   <td id="tobeclonedbusstability"><s:label
                    cssClass="info"
                                           cssStyle="width: 100%"
                                           label="Stability"
                                           id="pbstability"
                                           name="stability"
                                           value="Owned" /></td>
                                   </s:iterator>
                           </tr>
                           <tr id="trbusmodel">
                               <td>Model</td>
                               <s:iterator value="#session.business" >
                                   <td id="tobeclonedbusmodel">
                                       <s:label
                                           cssStyle="width: 100%"
                    cssClass="info"
                                           label="Model"
                                           id="pbmodel"
                                           name="model"
                                           value="Single Detach" />
                                   </td>
                               </s:iterator>
                           </tr>
                           <tr id="trbusmake">
                               <td>Make</td>
                               <s:iterator value="#session.business" >
                                   <td id="tobeclonedbusmake">
                                       <s:label cssClass="info"
                                           cssStyle="width: 100%"
                                           key="businesses.make"
                                           label="Make"
                                           id="pbmake"
                                           name="make"
                                           value="Concrete" />
                                   </td>
                               </s:iterator>
                           </tr>
                           <tr id="trbusland">
                               <td>Land</td>
                               <s:iterator value="#session.business" >
                                   <td id="tobeclonedbusland">
                                       <s:label
                                           cssClass="info"
                                           cssStyle="width: 100%"
                                           label="Land"
                                           id="pbland"
                                           name="land"
                                           value="Owned" />
                                   </td>
                               </s:iterator>
                           </tr>
                           <tr id="trdas">
                               <td>Daily Ave. Sales</td>
                               <s:iterator value="#session.business" >
                                   <td id="tobecloneddas"><s:label cssClass="info" name="dailyaveragesales" title="Daily Average Sales" label="DAS" /></td>
                               </s:iterator>
                           </tr>
                           <tr><td>If renting:</td></tr>
                           <tr id="trlname">
                               <td><s:label>Name of Landlord</s:label></td>
                               <s:iterator value="#session.business" >
                                   <td id="tobeclonedlname"><s:label cssClass="info" name="businesslandlordname" label="Name of Landlord"/></td>
                               </s:iterator>
                           </tr>
                           <tr id="trrental">
                               <td><s:label>Monthly Rental</s:label></td>
                               <s:iterator value="#session.business" >
                                   <td id="tobeclonedrental"><s:label cssClass="info" name="businessmonthlyrental" label="Monthly Rental"/></td>
                               </s:iterator>
                           </tr>
                           <tr id="trladd">
                               <td><s:label>Landlord Address</s:label></td>
                               <s:iterator value="#session.business" >
                                   <td id="tobeclonedladd"><s:label cssClass="info" name="businesslandlordaddress" label="Landlord Address"/></td>
                               </s:iterator>
                           </tr>
                           <tr id="trphone">
                               <td><s:label>Phone No.</s:label></td>
                               <s:iterator value="#session.business" >
                                   <td id="tobeclonedphone"><s:label cssClass="info" name="businesslandlordphoneno" label="Phone No."/></td>
                               </s:iterator>
                           </tr>
                       </table>
                       </s:if>
                       <s:else>
                    <table border="0" id="tblother" width="100%">
                            <tr>
                                <td colspan="6" style="font-size: 14px; font-weight: bold;"><s:label>Businesses</s:label></td>
                                </tr>
                                <tr>
                                    <td colspan="6" style="font-size: 14px; font-weight: bold;"><hr /></td>
                                </tr>
                                <tr>
                                    <td>No businesses specified.</td>
                                </tr>
                        </table>
                       </s:else>


                    <s:if test="%{#session.osilist!=null}">
                        <table border="0" id="tblother" width="100%">
                            <tr>
                                <td colspan="6" style="font-size: 14px; font-weight: bold;"><s:label>Other Sources of Income</s:label></td>
                                </tr>
                                <tr>
                                    <td colspan="6" style="font-size: 14px; font-weight: bold;"><hr /></td>
                                </tr>
                                <tr>
                                    <td></td>
                                    <td></td>
                                    <td><s:label>Employer/Business Name</s:label></td>
                                <td><s:label>Address</s:label></td>
                                <td><s:label>Position</s:label></td>
                                <td><s:label>Income</s:label></td>
                                </tr>
                            <s:iterator value="#session.osi" status="stat">
                                <tr id="tobeclonedother">
                                    <td>1</td>
                                    <td>
                                        <s:label
                                            label="Type" cssClass="info"
                                            id="type"
                                            name="type"
                                            value="Applicant" /></td>
                                    <td><s:label cssClass="info" id="empbusname" name="name" label="Employer/Business Name" key="othersourceofincome.employer" /></td>
                                    <td><s:label cssClass="info" id="otheraddress" name="address" label="Address" key="othersourceofincome.address" /></td>
                                    <td><s:label cssClass="info" id="otherposition" name="position" label="Position" key="othersourceofincome.position" /></td>
                                    <td><s:label cssClass="info" id="otherincome" name="income" label="Income" key="othersourceofincome.income" /></td>
                                </tr>
                            </s:iterator>
                        </table>
                    </s:if>
                    <s:else>
                        <table border="0" id="tblother" width="100%">
                            <tr>
                                <td colspan="6" style="font-size: 14px; font-weight: bold;"><s:label>Other Sources of Income</s:label></td>
                                </tr>
                                <tr>
                                    <td colspan="6" style="font-size: 14px; font-weight: bold;"><hr /></td>
                                </tr>
                                <tr>
                                    <td>No other sources of income specified.</td>
                                </tr>
                        </table>
                    </s:else>
                    <table border="0" width="100%">
                        <tr>
                            <td colspan="6" style="font-size: 14px; font-weight: bold;"><s:label>Educational Attainment</s:label></td>
                        </tr>
                        <tr>
                            <td colspan="6" style="font-size: 14px; font-weight: bold;"><hr /></td>
                        </tr>
                        <tr>
                            <td><td>
                            <td>Degree</td>
                            <td>School</td>
                            <td>Year Graduated</td>
                        </tr>
                        <tr>
                            <td>Applicant<td>
                            <td<s:label cssClass="info" id="appdegree" value="%{#request['borinfo'].degree}" name="degree" label="Degree" key="borrowerinfo.degree"  cssStyle="width: 250px" /></td>
                            <td><s:label cssClass="info" id="appschool" value="%{#request['borinfo'].school}" name="school" label="School" key="borrowerinfo.school"  cssStyle="width: 250px" /></td>
                            <td><s:label cssClass="info" id="appyeargrad" value="%{#gp.ci.province}" name="yeargraduated" label="Year Graduated" key="borrowerinfo.yeargraduated" /></td>
                        </tr>
                        <tr>
                            <td>Spouse<td>
                            <td><s:label cssClass="info" id="spousedegree" name="spousedegree" label="Degree" value="%{#gp.ci.spousedegree}" key="creditinvestigations.spousedegree"  cssStyle="width: 250px" /></td>
                            <td><s:label cssClass="info" id="spouseschool" name="spouseschool" label="School" value="%{#gp.ci.spousedegree}" key="creditinvestigations.spouseschool"  cssStyle="width: 250px" /></td>
                            <td><s:label cssClass="info" id="spouseyeargrad" name="spouseyeargraduated" label="Year Graduated" value="%{#gp.ci.spouseyeargraduated}" key="creditinvestigations.spouseyeargraduated" /></td>
                        </tr>
                    </table>
                    <table border="0" width="100%">
                        <tr>
                            <td colspan="5" style="font-size: 14px; font-weight: bold;"><s:label cssStyle="font-size: 16px; font-weight: bold;">Previous Home Address</s:label></td>
                        </tr>
                        <tr>
                            <td colspan="5" style="font-size: 14px; font-weight: bold;"><hr /></td>
                        </tr>
                        <tr>
                            <td><s:label>Street Address</s:label></td>
                            <td><s:label>Barangay</s:label><%-- --%></td>
                            <td><s:label>Municipality/City</s:label><%-- --%></td>
                            <td><s:label>Province</s:label><%-- --%></td>
                            <td><s:label>Postal Code</s:label><%-- --%></td>

                        </tr>
                        <tr>
                            <td>
                                <s:label cssClass="info" id="prevaddstreet" value="%{#gp.ci.previousstreetaddress}" name="previousstreetaddress" label="Street Address" key="creditinvestigations.previousstreetaddress" />
                            </td>
                            <td>
                                <s:label cssClass="info" id="prevaddbrgy" value="%{#gp.ci.previousbarangay}" name="previousbarangay" label="Barangay" key="creditinvestigations.previousbarangay" />
                            </td>
                            <td>
                                <s:label cssClass="info" id="prevaddcitymuni" value="%{#gp.ci.previouscityormunicipality}" name="previouscityormunicipality" label="City/Municipality" key="creditinvestigations.previouscityormunicipality" />
                            </td>
                            <td>
                                <s:label cssClass="info" id="prevaddprovince" value="%{#gp.ci.previousprovince}" name="previousprovince" label="Province" key="creditinvestigations.previousprovince" />
                            </td>
                            <td>
                                <s:label cssClass="info" id="prevaddpostalcode" value="%{#gp.ci.previouspostalcode}" name="previouspostalcode" label="Postal Code" key="creditinvestigations.previouspostalcode"/>
                            </td>

                        </tr>
                        <tr>
                            <td><s:label>Years of Stay</s:label><%-- --%>
                                <s:label
                                    cssClass="info"
                                    key="creditinvestigations.previouslengthofstayinyears"
                                    label="years"
                                    id="previouslengthofstayinyears"
                                    name="previouslengthofstayinyears"
                                    value="%{#gp.ci.previouslengthofstayinyears}"
                                    />

                            <td><s:label>Months of Stay</s:label><%-- --%>
                                <s:label
                                    cssClass="info"
                                    name="previouslengthofstayinmonths"
                                    label="Months"
                                    key="creditinvestigations.previouslengthofstayinmonths"
                                    value="%{#gp.ci.previouslengthofstayinmonths}"
                                    />
                            </td>
                        </tr>


                    </table>
                    <table border="0" width="100%">
                        <tr>
                            <td colspan="5" style="font-size: 14px; font-weight: bold;"><s:label cssStyle="font-size: 16px; font-weight: bold;">Parents Address</s:label></td>
                        </tr>
                        <tr>
                            <td colspan="5" style="font-size: 14px; font-weight: bold;"><hr /></td>
                        </tr>
                        <tr>
                            <td><s:label>Street Address</s:label></td>
                            <td><s:label>Barangay</s:label><%-- --%></td>
                            <td><s:label>Municipality/City</s:label><%-- --%></td>
                            <td><s:label>Province</s:label><%-- --%></td>
                            <td><s:label>Postal Code</s:label><%-- --%></td>
                        </tr>
                        <tr>
                            <td>
                                <s:label cssClass="info" id="parentaddstreet" value="%{#gp.ci.parentsstreetaddress}" name="parentsstreetaddress" label="Street Address" key="creditinvestigations.parentsstreetaddress" />
                            </td>
                            <td>
                                <s:label cssClass="info" id="parentaddbrgy" value="%{#gp.ci.parentsbarangay}" name="parentsbarangay" label="Barangay" key="creditinvestigations.parentsbarangay" />
                            </td>
                            <td>
                                <s:label cssClass="info" id="parentaddcitymuni" value="%{#gp.ci.parentscityormunicipality}" name="parentscityormunicipality" label="City/Municipality" key="creditinvestigations.parentscityormunicipality" />
                            </td>
                            <td>
                                <s:label cssClass="info" id="parentaddprovince" value="%{#gp.ci.parentsprovince}" name="parentsprovince" label="Province" key="creditinvestigations.parentsprovince" />
                            </td>
                            <td>
                                <s:label cssClass="info" id="parentpostalcode" value="%{#gp.ci.parentspostalcode}" name="parentspostalcode" label="Postal Code" key="creditinvestigations.parentspostalcode"/>
                            </td>

                        </tr>
                        <tr>
                            <td><s:label>Years of Stay</s:label><%-- --%>
                                <s:label
                                    cssClass="info"
                                    name="parentslengthofstayinyear"
                                    label="Years"
                                    key="creditinvestigations.parentslengthofstayinyear"
                                    value="%{#gp.ci.parentslengthofstayinyear}"
                                    />
                            </td>
                            <td><s:label>Months of Stay</s:label><%-- --%>
                                <s:label
                                    cssClass="info"
                                    name="parentslengthofstayinmonths"
                                    label="Months"
                                    key="creditinvestigations.parentslengthofstayinmonths"
                                    value="%{#gp.ci.parentslengthofstayinmonths}"
                                    />
                            </td>
                        </tr>
                    </table>
                    <table border="0" width="100%">
                        <tr>
                            <td colspan="7" style="font-size: 14px; font-weight: bold;"><s:label>Parents' Information</s:label></td>
                        </tr>
                        <tr>
                            <td colspan="7"style="font-size: 14px; font-weight: bold;"><hr /></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td><s:label>First Name</s:label></td>
                            <td><s:label>Middle Name</s:label></td>
                            <td><s:label>Last Name</s:label></td>
                            <td><s:label>Employer</s:label></td>
                            <td><s:label>Position</s:label></td>
                            <td><s:label>Age</s:label></td>
                        </tr>
                        <tr>
                            <td><s:label>Father</s:label></td>
                            <td><s:label cssClass="info" id="fatherlastname"  value="%{#request['borinfo'].fatherfirstname}"  name="fatherfirstname" label="First Name" key="borrowerinfo.fatherfirstname" /><%-- --%></td>
                            <td><s:label cssClass="info" id="fathermi"  value="%{#request['borinfo'].fathermiddlename}"  name="fathermiddlename" label="Middle Name" key="borrowerinfo.fathermiddlename" /><%-- --%></td>
                            <td><s:label cssClass="info" id="fatherfirstname"  value="%{#request['borinfo'].fatherlastname}" name="fatherlastname" label="Last Name" key="borrowerinfo.fatherlastname" /><%-- --%></td>
                            <td><s:label cssClass="info" id="fatheremp"  value="%{#request['borinfo'].fatheremployer}" name="fatheremployer" label="Employer" key="borrowerinfo.fatheremployer" /><%-- --%></td>
                            <td><s:label cssClass="info" id="fatherposition"  value="%{#request['borinfo'].fatherposition}" name="fatherposition" label="Position" key="borrowerinfo.fatherposition" /><%-- --%></td>
                            <td><s:label cssClass="info" id="fatherage"  value="%{#request['borinfo'].fatherage}" name="fatherage" label="Age" key="borrowerinfo.fatherage" cssStyle="width: 30px;" /></td>
                        </tr>
                        <tr>
                            <td><s:label>Mother</s:label></td>
                            <td><s:label cssClass="info" id="motherfirstname" value="%{#request['borinfo'].motherfirstname}"  name="motherfirstname" label="First Name" key="borrowerinfo.motherfirstname" /><%-- --%></td>
                            <td><s:label cssClass="info" id="mothermi" value="%{#request['borinfo'].mothermiddlename}"  name="mothermiddlename" label="Middle Name" key="borrowerinfo.mothermiddlename" /><%-- --%></td>
                            <td><s:label cssClass="info" id="motherlastname" value="%{#request['borinfo'].motherlastname}"  name="motherlastname" label="Last Name" key="borrowerinfo.motherlastname" /><%-- --%></td>
                            <td><s:label cssClass="info" id="motheremp" value="%{#request['borinfo'].motheremployer}"  name="motheremployer" label="Employer" key="borrowerinfo.motheremployer" /><%-- --%></td>
                            <td><s:label cssClass="info" id="motherposition" value="%{#request['borinfo'].motherposition}"  name="motherposition" label="Position" key="borrowerinfo.motherposition" /><%-- --%></td>
                            <td><s:label cssClass="info" id="motherage" value="%{#request['borinfo'].motherage}"  name="motherage" label="Age" key="borrowerinfo.motherage" cssStyle="width: 30px;" /></td>
                        </tr>
                    </table>
                    <table border="0" width="100%">
                        <tr>
                            <td colspan="5" style="font-size: 14px; font-weight: bold;"><s:label cssStyle="font-size: 16px; font-weight: bold;">Parents-in-Law's Address</s:label></td>
                        </tr>
                        <tr>
                            <td colspan="5" style="font-size: 14px; font-weight: bold;"><hr /></td>
                        </tr>
                        <tr>
                            <td><s:label>Street Address</s:label></td>
                            <td><s:label>Barangay</s:label><%-- --%></td>
                            <td><s:label>Municipality/City</s:label><%-- --%></td>
                            <td><s:label>Province</s:label><%-- --%></td>
                            <td><s:label>Postal Code</s:label><%-- --%></td>
                        </tr>
                        <tr>
                            <td>
                                <s:label cssClass="info" id="parentinlawaddno" value="%{#gp.ci.parentsinlawstreetaddress}" name="parentsinlawstreetaddress" label="Street Address" key="creditinvestigations.parentsinlawstreetaddress" />
                            </td>
                            <td>
                                <s:label cssClass="info" id="parentinlawaddbrgy" value="%{#gp.ci.parentsinlawbarangay}" name="parentsinlawbarangay" label="Barangay" key="creditinvestigations.parentsinlawbarangay" />
                            </td>
                            <td>
                                <s:label cssClass="info" id="parentinlawaddcitymuni" value="%{#gp.ci.parentsinlawcityormunicipality}" name="parentsinlawcityormunicipality" label="City/Municipality" key="creditinvestigations.parentsinlawcityormunicipality" />
                            </td>
                            <td>
                                <s:label cssClass="info" id="parentinlawaddprovince" value="%{#gp.ci.parentsinlawprovince}" name="parentsinlawprovince" label="Province" key="creditinvestigations.parentsinlawprovince" />
                            </td>
                            <td>
                                <s:label cssClass="info" id="parentinlawaddprovince" value="%{#gp.ci.parentsinlawpostalcode}" name="parentsinlawpostalcode" label="Postal Code" key="creditinvestigations.parentsinlawpostalcode" />
                            </td>

                        </tr>
                        <tr>
                            <td><s:label>Years of Stay</s:label><%-- --%>
                                <s:label
                                    cssClass="info"
                                    name="parentsinlawlengthofstayinyears"
                                    label="Years"
                                    value="%{#gp.ci.parentsinlawlengthofstayinyears}"
                                    />
                            </td>
                            <td><s:label>Months of Stay</s:label><%-- --%>
                                <s:label
                                    cssClass="info"
                                    name="parentsinlawlengthofstayinmonths"
                                    label="Months"
                                    value="%{#gp.ci.parentsinlawlengthofstayinmonths}"
                                    />
                            </td>
                        </tr>

                    </table>
                    <table border="0" width="100%">
                        <tr>
                            <td colspan="7" style="font-size: 14px; font-weight: bold;"><s:label>Parents-in-Law's Information</s:label></td>
                        </tr>
                        <tr>
                            <td colspan="7" style="font-size: 14px; font-weight: bold;"><hr /></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td><s:label>First Name</s:label></td>
                            <td><s:label>Middle Name</s:label></td>
                            <td><s:label>Last Name</s:label></td>
                            <td><s:label>Employer</s:label></td>
                            <td><s:label>Position</s:label></td>
                            <td><s:label>Age</s:label></td>
                        </tr>
                        <tr>
                            <td><s:label>Father</s:label></td>
                            <td><s:label cssClass="info" id="fatherinlawfirstname" value="%{#gp.ci.fatherinlawfirstname}" name="fatherinlawfirstname" label="First Name" key="creditinvestigations.fatherinlawfirstname" /></td>
                            <td><s:label cssClass="info" id="fatherinlawmi" value="%{#gp.ci.fatherinlawmiddlename}" name="fatherinlawmiddlename" label="M.I." key="creditinvestigations.fatherinlawmiddlename" /></td>
                            <td><s:label cssClass="info" id="fatherinlawlastname" value="%{#gp.ci.fatherinlawlastname}" name="fatherinlawlastname" label="Last Name" key="creditinvestigations.fatherinlawlastname" /></td>
                            <td><s:label cssClass="info" id="fatherinlawemp" value="%{#gp.ci.fatherinlawemployer}" name="fatherinlawemployer" label="Employer" key="creditinvestigations.fatherinlawemployer" /></td>
                            <td><s:label cssClass="info" id="fatherinlawposition" value="%{#gp.ci.fatherinlawposition}" name="fatherinlawposition" label="Position" key="creditinvestigations.fatherinlawposition" /></td>
                            <td><s:label cssClass="info" id="fatherinlawage" value="%{#gp.ci.fatherinlawage}" name="fatherinlawage" label="Age" key="creditinvestigations.fatherinlawage" cssStyle="width: 30px;" /></td>
                        </tr>
                        <tr>
                            <td><s:label>Mother</s:label></td>
                            <td><s:label cssClass="info" id="motherfirstname" value="%{#gp.ci.motherinlawfirstname}" name="motherinlawfirstname" label="First Name" key="creditinvestigations.motherinlawfirstname" /></td>
                            <td><s:label cssClass="info" id="mothermi" value="%{#gp.ci.motherinlawmiddlename}" name="motherinlawmiddlename" label="M.I." key="creditinvestigations.motherinlawmiddlename" /></td>
                            <td><s:label cssClass="info" id="motherlastname" value="%{#gp.ci.motherinlawlastname}" name="motherinlawlastname" label="Last Name" key="creditinvestigations.motherinlawlastname" /></td>
                            <td><s:label cssClass="info" id="motheremp" value="%{#gp.ci.motherinlawemployer}" name="motherinlawemployer" label="Employer" key="creditinvestigations.motherinlawemployer" /></td>
                            <td><s:label cssClass="info" id="motherposition" value="%{#gp.ci.motherinlawposition}" name="motherinlawposition" label="Position" key="creditinvestigations.motherinlawposition" /></td>
                            <td><s:label cssClass="info" id="motherage" value="%{#gp.ci.motherinlawage}" name="motherinlawage" label="Age" key="creditinvestigations.motherinlawage" cssStyle="width: 30px;" /></td>
                        </tr>
                    </table>
                    <table border="0" id="tblpersonal" width="100%">
                        <tr>
                            <td colspan="6" style="font-size: 14px; font-weight: bold;"><s:label>Personal and Real Properties Owned</s:label></td>
                        </tr>
                        <tr>
                            <td colspan="6" style="font-size: 14px; font-weight: bold;"><hr /></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>Description</td>
                            <td>Nature</td>
                            <td>Location</td>
                            <td>Value</td>
                        </tr>
                        <s:iterator value="#session.parplist" >
                            <tr id="tobeclonedpersonal">
                                <td>1</td>
                                <td><s:label cssClass="info" id="prpdescription" name="description" label="Description" key="personalandrealproperties.description" /></td>
                                <td><s:label cssClass="info" id="prpnature" name="nature" label="Nature" key="personalandrealproperties.nature"/></td>
                                <td><s:label cssClass="info" id="prplocation" name="location" label="Location" key="personalandrealproperties.location"/></td>
                                <td><s:label cssClass="info" id="value6" name="value" label="Value" key="personalandrealproperties.value"/></td>
                            </tr>
                        </s:iterator>
                    </table>
                    <table border="0" id="tblsavings" width="100%">
                        <tr>
                            <td colspan="6" style="font-size: 14px; font-weight: bold;"><s:label>Savings, Time Deposit and Other Notes Receivables</s:label></td>
                        </tr>
                        <tr>
                            <td colspan="6" style="font-size: 14px; font-weight: bold;"><hr /></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>Bank/Institution</td>
                            <td>Type</td>
                            <td>Account Number</td>
                            <td>Amount</td>
                        </tr>
                        <s:iterator value="#session.nrlist" >
                            <tr id="tobeclonedsavings">
                                <td>1</td>
                                <td><s:label cssClass="info" id="stobankinstitution" name="bank" label="Bank/Institution" key="notesreceivable.bank" /></td>
                                <td><label class="info"><s:property value="type"/></label></td>
                                <td><s:label cssClass="info" id="stoaccountno" name="accountno" label="Account Number" key="notesreceivable.accountno" /></td>
                                <td> <s:label cssClass="info" id="stoamount" name="amount" label="Amount" key="notesreceivable.amount" /></td>
                            </tr>
                        </s:iterator>
                    </table>
                    <table border="0" width="100%">
                        <tr>
                            <td colspan="6" style="font-size: 14px; font-weight: bold;"><s:label>Reputation</s:label></td>
                            <td>
                                <s:iterator value="#session.replist" >
                                    <input type="checkbox" value="<s:property value="type"/>" checked="checked" disabled="true" /><label><s:property value="type"/></label><br />
                                </s:iterator>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="6" style="font-size: 14px; font-weight: bold;"><s:label>Residence Confirmation</s:label></td>
                            <td>
                                <s:label>Residence Confirmation</s:label>
                                <s:label
                                    cssClass="info"
                                    label="Residence Confirmation"
                                    id="rescon"
                                    name="presentaddressstatus"
                                    value="%{#gp.ci.presentaddressstatus}" />
                                <br />
                                <s:label>Length of Stay</s:label>
                                <s:label
                                    cssClass="info"
                                    label="Years"
                                    name="presentaddresslengthofstayinyears"
                                    value="%{#gp.ci.presentaddresslengthofstayinyears}"
                                    />
                                <s:label>Months of Stay</s:label>
                                <s:label
                                    cssClass="info"
                                    name="presentaddresslengthofstayinmonths"
                                    label="Months"
                                    value="%{#gp.ci.presentaddresslengthofstayinmonths}"
                                    />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="6" style="font-size: 14px; font-weight: bold;"><s:label>Source of Income</s:label></td>
                            <td>
                                <s:iterator value="#session.soilist">
                                    <input type="checkbox" value="<s:property value="type"/>" checked="checked" disabled="true" /><label><s:property value="type"/></label><br />
                                </s:iterator>
                            </td>
                        </tr>
                    </table>
                    <table border="0" id="tblinformants" width="100%">
                        <tr>
                            <td colspan="7" style="font-size: 14px; font-weight: bold;"><s:label>Informants</s:label></td>
                        </tr>
                        <tr>
                            <td colspan="7" style="font-size: 14px; font-weight: bold;"><hr /></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>First Name</td>
                            <td>Middle Name</td>
                            <td>Last Name</td>
                            <td>Relationship to Borrower</td>
                            <td>Address</td>
                            <td>Length of Relationship</td>
                        </tr>
                        <s:iterator value="#session.inflist" >
                            <tr id="tobeclonedinformants">
                                <td>1</td>
                                <td><label class="info"><s:property value="firstname"/></label></td>
                                <td><label class="info"><s:property value="middlename"/></label></td>
                                <td><label class="info"><s:property value="lastname"/></label></td>
                                <td><label class="info"><s:property value="relationshiptoborrower"/></label></td>
                                <td><label class="info"><s:property value="address"/></label></td>
                                <td><label class="info"><s:property value="lengthofrelationshipinyears"/></label></td>
                            </tr>
                        </s:iterator> 
                    </table>
                    <table border="0" id="tbldocs" width="100%">
                        <tr>
                            <td colspan="6" style="font-size: 14px; font-weight: bold;"><s:label>Documents Presented</s:label></td>
                        </tr>
                        <tr>
                            <td colspan="6" style="font-size: 14px; font-weight: bold;"><hr /></td>
                        </tr>
                        <tr>
                            <td></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td><s:label>Documents Type</s:label></td>
                            <td><s:label>Documents No.</s:label></td>
                            <td><s:label>Type of Copy</s:label></td>
                        </tr>
                        <s:iterator value="#session.doclist" >
                            <tr id="tobecloneddocs">
                                <td>1</td>
                                <td><s:label cssClass="info" id="documenttype" name="documenttype" label="Document Type" key="documentspassed.documenttype" /></td>
                                <td><s:label cssClass="info" id="documentno" name="documentno" label="Document No." key="documentpassed.documentno" /></td>
                                <td>
                                    <s:label
                                        id="documenttypecopy"
                                        cssClass="info"
                                        name="copytype"
                                        key="documentspassed.copytype"
                                        label="Months" />
                                </td>
                            </tr>
                        </s:iterator>
                    </table>
                    <table border="0" width="100%">
                        <tr>
                            <td colspan="6" style="font-size: 14px; font-weight: bold;"><s:label>Observations and Situational Analysis</s:label></td>
                        </tr>
                        <tr>
                            <td colspan="6" style="font-size: 14px; font-weight: bold;"><hr /></td>
                        </tr>
                        <tr>
                            <td>
                                <s:label>Stocks Worth Description</s:label><br/>
                                <s:textarea cols="45" rows="10" readonly="true" cssClass="info" id="stocksworth" name="stocksworth" value="%{#gp.ci.stocksworthdescription}" label="Stocks Worth"/><br/>
                                <s:label>Stocks Worth Amount</s:label><br/>
                                <s:label cssClass="info" name="stocksworthamount" id ="stocksworthamount" value="%{#gp.ci.stocksworthamount}" label="Amount" />
                            </td>
                            <td>
                                <s:label>Remarks</s:label><br/>
                                <s:textarea cols="45" rows="10" readonly="true" cssClass="info" id="osaremarks" name="remarks" label="Remarks" value="%{#gp.ci.remarks}" /><br/>
                                <s:label cssClass="info" name="asdfasd" cssStyle="visibility: hidden;" />
                            </td>
                            <td>
                                <s:label>Types of Collaterals</s:label><br/>
                                <s:iterator value="#session.toclist">
                                    <input type="checkbox" value="<s:property value="type"/>" checked="checked" disabled="true" /><label><s:property value="type"/></label><br />
                                </s:iterator>
                            </td>
                        </tr>
                    </table>
                    <table border="0" width="100%">
                        <tr>
                            <td colspan="6" style="font-size: 14px; font-weight: bold;"><s:label>Evaluation and Recommendations</s:label></td>
                        </tr>
                        <tr>
                            <td colspan="6" style="font-size: 14px; font-weight: bold;"><hr /></td>
                        </tr>
                        <tr>
                            <td>
                                <s:label>Credit Consultant</s:label><br/>
                                <s:textarea cols="45" rows="10" readonly="true" cssClass="info" id="ercreditcon" name="creditconsultantrecommendation" value="%{#gp.ci.creditconsultantrecommendation}" label="Credit Consultant"/>
                            </td>

                            <td>
                                <s:label>Branch Manager</s:label><br/>
                                <s:textarea cols="45" rows="10" readonly="true" cssClass="info" id="erbm" name="branchmanagerrecommendation" label="Branch Manager" value="%{#gp.ci.branchmanagerrecommendation}" />
                            </td>

                            <td>
                                <s:label>Area Manager</s:label><br/>
                                <s:textarea cols="45" rows="10" id="eram" readonly="true" cssClass="info" name="areamanagerrecommendation" label="Area Manager" value="%{#gp.ci.areamanagerrecommendation}" />
                            </td>
                        </tr>
                    </table>

                </s:div>
            </s:form>
        </div>
        <div id="appraisal">
            <s:form id="appraisalform" action="add-appraisal" theme="simple"  method="post" enctype="multipart/form-data">
                <s:div>
                    <table border="0" width="100%">
                        <tr>
                            <td nowrap="true">
                                <s:label>Document No.</s:label>
                            </td>
                            <td>
                                <s:label><s:label cssClass="info" id="docnoapp" name="docnoapp" label="Document No." value="%{#gp.ap.documents.documentno}"/></s:label>
                            </td>
                            <td>
                                <s:label>Document Ref No.</s:label>
                            </td>
                            <td>
                                <s:label><s:label cssClass="info" id="docrefnoapp" name="docrefnoapp" label="Document Ref No." value="%{#gp.l.documents.documentno}" /></s:label>
                            </td>
                            <td>
                                <s:label>Loan Application ID</s:label>
                            </td>
                            <td>
                                <s:label cssClass="info" id="loanappidapp" name="loanappidapp" label="loanappidapp No." value="%{#gp.l.loanappid}"/>
                            </td>

                        </tr>
                        <tr>
                            <td>
                                <s:label>Document Type</s:label>
                            </td>
                            <td>
                                <s:label><s:label cssClass="info" id="doctypeapp" name="doctypeapp" label="Document Type" value="Appraisal"/></s:label>
                            </td>
                            <td>
                                <s:label>Document Ref Type</s:label>
                            </td>
                            <td>
                                <s:label><s:label cssClass="info" id="docreftypeapp" name="docreftypeapp" label="Document Ref Type" value="Loan Application"/></s:label>
                            </td>
                            <td><s:label>Document Image</s:label></td><td><a href="javascript:myPopup('appraisals')"><s:label cssClass="info" id="documentdateapp" name="documentrefdateapp" value="%{#gp.ap.documents.filename}" /></a>
                                <s:textfield cssStyle="display: none" id="appraisalimage" value="%{#gp.ap.documents.filename}"  /></td>
                            <td style="display: none"><s:label>Employee Id</s:label></td>
                            <td style="display: none"><s:textfield name="employeeid" value="%{#gp.ap.employees.completename}" readonly="true" label="Employee Id"/></td>
                        </tr>
                        <tr>
                            <td>
                                <s:label>Document Date</s:label>
                            </td>
                            <td>
                                <s:label><s:label cssClass="info" id="documentdateapp" name="documentdateapp" value="%{#gp.ap.documents.documentdate}" label="Document Date"/></s:label>
                            </td>
                            <td>
                                <s:label>Document Ref. Date</s:label>
                            </td>
                            <td>
                                <s:label><s:label cssClass="info" id="documentdateapp" name="documentrefdateapp" value="%{#gp.l.documents.documentdate}" label="Document Ref. Date"/></s:label>
                            </td>
                            <td><s:label>Employee Id</s:label></td><td><s:label cssClass="info" name="employeeid" value="%{#gp.ci.employees.completename}" readonly="true" label="Employee Id"/></td>


                            <td style="display: none"><s:textfield name="dateoffirstrelease" value="DATE" readonly="true" /></td>
                        </tr>
                        <tr>
                            <td colspan="6" style="font-size: 14px; font-weight: bold;"><hr /></td>
                        </tr>
                    </table>
                </s:div>
                <s:div cssStyle="height: 325px; overflow: auto">
                    <table border="0">
                        <%--<%
                            System.out.println("ETO" + request.getSession().getAttribute("colllist"));
                            System.out.println("ETO" + request.getSession().getAttribute("branch"));
                        %>--%>
                        <tr>
                            <td colspan="9" style="font-size: 14px; font-weight: bold;"><s:label>Collaterals</s:label></td>
                        </tr>
                        <tr>
                            <td colspan="9" style="font-size: 14px; font-weight: bold;"><hr /></td>
                        </tr>
                        <tr id="trlabelapp">
                            <td nowrap="true"></td>
                            <td align="center" id="tobeclonedapp">1</td>
                        </tr>
                        <tr id="trmakeandtype">
                            <td nowrap="true"><s:label cssStyle="width: 400px">Make and Type</s:label></td>
                            <s:iterator value="#session.colllist" >
                                <td class="info" id="tobeclonedmakeandtype"><label><s:property value="makeandtype" /></label></td>
                            </s:iterator>
                        </tr>
                        <tr id="trbrand">
                            <td><s:label cssStyle="width: 400px">Brand</s:label></td>
                            <s:iterator value="#session.colllist" >
                                <td class="info" id="tobeclonedbrand"><label><s:property value="brand" /></label></td>
                            </s:iterator>
                        </tr>
                        <tr id="trserial">
                            <td><s:label cssStyle="width: 400px">Series Number</s:label></td>
                            <s:iterator value="#session.colllist" >
                                <td class="info" id="tobeclonedserial"><label><s:property value="serialno" /></label></td>
                            </s:iterator>
                        </tr>
                        <tr id="trmodel">
                            <td><s:label cssStyle="width: 400px" nowrap="true">Model Number</s:label></td>
                            <s:iterator value="#session.colllist">
                                <td class="info" id="tobeclonedmodel"><label><s:property value="modelno" /></label></td>
                            </s:iterator>
                        </tr>
                        <tr id="trreg">
                            <td><s:label cssStyle="width: 400px">Reg. Cert. No.</s:label></td>
                            <s:iterator value="#session.colllist" >
                                <td class="info" id="tobeclonedreg"><label><s:property value="regcertno" /></label></td>
                            </s:iterator>
                        </tr>
                        <tr id="trmotor">
                            <td><s:label cssStyle="width: 400px">Motor No.</s:label></td>
                            <s:iterator value="#session.colllist" >
                                <td class="info" id="tobeclonedmotor"><label><s:property value="motorno" /></label></td>
                            </s:iterator>
                        </tr>
                        <tr id="trchasis">
                            <td><s:label cssStyle="width: 400px">Chassis No.</s:label></td>
                            <s:iterator value="#session.colllist" >
                                <td class="info" id="tobeclonedchasis"><label><s:property value="chasisno" /></label></td>
                            </s:iterator>
                        </tr>
                        <tr id="trplate">
                            <td><s:label cssStyle="width: 400px">Plate No.</s:label></td>
                            <s:iterator value="#session.colllist" >
                                <td class="info" id="tobeclonedplate"><label><s:property value="plateno" /></label></td>
                            </s:iterator>
                        </tr>
                        <tr id="trfair">
                            <td><s:label cssStyle="width: 400px">F.M. Value</s:label></td>
                            <s:iterator value="#session.colllist" >
                                <td class="info" id="tobeclonedfair"><label><s:property value="fairmarketvalue" /></label></td>
                            </s:iterator>
                        </tr>
                        <tr id="trlocation">
                            <td><s:label cssStyle="width: 400px">Location</s:label></td>
                            <s:iterator value="#session.colllist" >
                                <td class="info" id="tobeclonedlocation"><label><s:property value="location" /></label></td>
                            </s:iterator>
                        </tr>
                        <tr id="trgen">
                            <td nowrap="true"><s:label cssStyle="width: 400px">General Condition</s:label></td>
                            <s:iterator value="#session.colllist" >
                                <td class="info"  id="tobeclonedgen"><label><s:property value="generalcondition" /></label></td>
                            </s:iterator>
                        </tr>
                    </table>
                    <table border="1">
                        <tr><td><s:label cssStyle="width: 400px">TOTAL FAIR MARKET VALUE</s:label></td><td><s:label cssClass="info" id="totalfairmarketvalue" value="%{#gp.ap.totalfairmarketvalue}" name="totalfairmarketvalue" label="totalfairmarketvalue" /></td></tr>
                        <tr><td><s:label cssStyle="width: 400px">TOTAL APPRAISED VALUE</s:label></td><td><s:label cssClass="info" id="totalappraisedvalue" value="%{#gp.ap.totalappraisedvalue}" name="totalappraisedvalue" label="totalappraisedvalue" /></td></tr>
                        <tr><td><s:label cssStyle="width: 400px">LOANABLE AMOUNT</s:label></td><td><s:label cssClass="info" id="loanableamount" value="%{#gp.ap.loanableamount}" name="loanableamount" label="loanableamount" /></td></tr>
                    </table>

                </s:div>
            </s:form>
        </div>
    </sj:tabbedpanel>
</s:div>

